// time.js


const fmt_options = {

    year: "numeric",
    month: "2-digit",
    day: "2-digit",

    hour: "2-digit",
    minute: "2-digit",
    second: "2-digit",
}

const fmt_locale = Intl.Locale

const fmt = Intl.DateTimeFormat(fmt_locale, fmt_options);


function FormatTime(ms) {
    let d = new Date();
    d.setTime(ms)
    return fmt.format(d)
}


export default {

    name: "time",

    FormatTime,

}

